/**
 * 作者：陈文斌 on 2019/1/18.
 * 邮箱：chen_wennbin@163.com
 * 版本：v1.0
 */

import 'package:json_annotation/json_annotation.dart';
import 'package:crm/model/Employee/employee_model.dart';
import 'package:crm/model/Friend/friend_group_model.dart';
import 'package:crm/model/Friend/friend_model.dart';

part 'friend_request_model.g.dart';

@JsonSerializable()
class FriendRequestModel extends Object
    with _$FriendRequestModelSerializerMixin {
  String Id;
  String SenderId;
  EmployeeModel Sender;
  String ReceiverId;
  EmployeeModel Receiver;
  String GroupId;
  FriendGroupModel Group;
  int Status;
  String RequestTime;
  String RequestMsg;
  String ResponseTime;
  String ResponseMsg;
  String FriendRelId;
  FriendModel FriendRel;

  FriendRequestModel(
    this.Id,
    this.SenderId,
    this.Sender,
    this.Receiver,
    this.ReceiverId,
    this.GroupId,
    this.Group,
    this.Status,
    this.RequestTime,
    this.RequestMsg,
    this.FriendRelId,
    this.FriendRel,
    this.ResponseTime,
    this.ResponseMsg,
  );

  @override
  factory FriendRequestModel.fromJson(Map<String, dynamic> json) =>
      _$FriendRequestModelFromJson(json);
}
